# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxau
pkgver=1.0.9
pkgrel=0
pkgdesc="X11 authorisation library"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends=
makedepends="xorgproto util-macros"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXau-$pkgver.tar.bz2"

builddir="$srcdir"/libXau-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
	install -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="3ca454ba466a807ea28b0f715066d73dc76ad312697b121d43e4d5766215052e9b7ffb8fe3ed3e496fa3f2a13f164ac692ff85cc428e26731b679f0f06a1d562  libXau-1.0.9.tar.bz2"
